<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="css/tableCss.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="js/layer.js"></script>
<title>添加店铺</title>
<script type="text/javascript">
	function starChange() {
		var star1 = document.getElementById("star1").value;
		var star2 = document.getElementById("star2").value;
		var end1 = document.getElementById("end1").value;
		var end2 = document.getElementById("end2").value;

		if (star1 > 24 || star2 > 60 || star1 < 0 || star2 < 0||end1 > 24 || end2 > 60 || end1 < 0 || end2 < 0) {
			alert("时间格式不正确");
			this.focus();
		}
	}
</script>
</head>
<body>
	<s:form action="ShopAction!addShop" method="post"
		enctype="multipart/form-data">
	<table id="model_t" align="center">
			<tr style="height: 10px;">
			<td id="tth" colspan="8"><p id="thp">&nbsp;&nbsp;添加店铺</p></td>

		</tr>

			<tr>
				<td><p id="tdp">店名：</p></td>
				<td><p id="tdp"><input type="text" name="shop.shopName"></p></td>
			</tr>
			<tr>
				<td><p id="tdp">店家图片</p></td>
				<td><s:file name="spicture" /> <s:fielderror
						fieldName="spicture"></s:fielderror></td>
			</tr>
			<tr>
				<td><p id="tdp">订餐电话：</p></td>
				<td><p id="tdp"><input type="text" name="shop.phone"></p></td>
			</tr>
			<tr>
				<td><p id="tdp">营业时间：</p></td>

				<td><p id="tdp"><input type="text" id="star1" name="star1"
					onblur="starChange();" style="width: 30px;">:<input
					type="text" name="star2" id="star2" onblur="starChange();" style="width: 30px">-<input
					type="text" name="end1" id="end1" onblur="starChange();" style="width: 30px">:<input
					type="text" name="end2" id="end2" onblur="starChange();" style="width: 30px"></p></td>
			</tr>
			<tr>
				<td><p id="tdp">位置：</p></td>
				<td><p id="tdp"><input type="text" name="shop.place"></p></td>
			</tr>
			<tr>
				<td><p id="tdp">评价：</p></td>
				<td><p id="tdp"><input type="text" name="shop.evaluate" value="1"></p></td>
			</tr>
			<tr>
				<td><p id="tdp">推荐店铺</p></td>
				<td><p id="tdp"><input type="radio" name="shop.recommend" value="1" />推荐 <input
					type="radio" name="shop.recommend" value="0" checked="checked" />不推荐
				</p></td>
			</tr>
			<tr>
				<td colspan="2"><p id="tdp"><input type="submit" value="提交"><a href="queryShopInfo">返回</a></p></td>
				
			</tr>
		</table>
	</s:form>
</body>
</html>